package com.maistars.spider.service.domain.rule;

import com.maistars.spider.service.domain.task.CrawlerTask;
import com.maistars.spider.service.domain.BaseBO;
import lombok.Builder;
import lombok.Data;

/**
 * @author dhr
 * @date 2021/1/15 下午9:38
 */
@Builder
@Data
public class FieldRule extends BaseBO {
    private Integer fieldId;

    private CrawlerTask crawlerTask;

    private String fieldName;

    private String rule;

    /**
     * 解析类型：
     * 1.xpath
     * 2.JsonPath
     * 3.常量
     * 4.xml
     */
    private Integer parseType;

    /**
     * 数据清洗配置
     */
    private String processConfig;
}
